#include "resource.h"
#include <string>

class CAuthDlg : public CDialogImpl<CAuthDlg>
{
		std::wstring *m_pstrLogin;
		std::wstring *m_pstrPassword;
		
	public:
	
		// Dialog Data
		enum { IDD = IDD_AUTH };
		
		typedef CDialogImpl<CAuthDlg> baseClass;
		
		BEGIN_MSG_MAP(CAuthDlg)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		MESSAGE_HANDLER(WM_CLOSE, OnClose)
		COMMAND_HANDLER(IDOK, 0, OnDone)
		COMMAND_HANDLER(IDCANCEL, 0, OnCancel)
		//CHAIN_MSG_MAP(baseClass)
		END_MSG_MAP()
		
		CAuthDlg(std::wstring *pstrLogin, std::wstring *pstrPassword);
		
		LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
		LRESULT OnDone(WORD /* wNotifyCode */, WORD wID, HWND /* hWndCtl */, BOOL& /* bHandled */);
		LRESULT OnCancel(WORD /* wNotifyCode */, WORD wID, HWND /* hWndCtl */, BOOL& /* bHandled */);
		LRESULT OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
};